package com.edee.bigday.filedealer.fileRemoveWeight.quange;

import java.io.File;
import java.text.SimpleDateFormat;
import java.util.Date;

public class dd {
	public static void main(String[] args) {
		File file = new File("C:/Users/SUN/Desktop/文件整理TestData/test1/007.log");
		long length = file.length();
		long time = file.lastModified();
		String ctime = new SimpleDateFormat("yyyyMMddhh:mm:ss").format(new Date(time));
		System.out.println("length:"+length);
		System.out.println("ctime:"+ctime);
		File file1 = new File("C:/Users/SUN/Desktop/文件整理TestData/test2/0070.log");
		long length1 = file.length();
		long time1 = file.lastModified();
		String ctime1 = new SimpleDateFormat("yyyyMMddhh:mm:ss").format(new Date(time1));
		System.out.println("length1:"+length1);
		System.out.println("ctime1:"+ctime1);
	}
}
